QYSThresholdMobileCert.framework QYSThresholdMobileCertResources.bundle
系统生物识别权限 【NSFaceIDUsageDescription】
系统相机权限 【NSCameraUsageDescription】
// 1. 导入头文件#import <QYSThresholdMobileCert/QYSThresholdMobileCert.h>// 2. 初始化SDK 【使用SDK的API必须先使用此方法初始化】// domainStr 项目环境地址 【必传】// completion 回调// code:// 100:SDK初始化失败// 200:SDK初始化成功[[QYSThresholdMobileCert shareInstance] initSDKWithDomain:@"https://privapp.qiyuesuo.me/" completion:^(NSInteger code, NSString *message) {if (code == 200) {}}];// 3. 处理扫码结果 【支持:移动印章激活,加解密和签署】// string 二维码扫描的结果// completion 回调// code:// 300:未初始化SDK// 101:QRString参数为空// 102:QRString不正确// 103:二维码已失效// 104:加解密参数错误// 105:本地无有效证书// 106:本地无指定证书[[QYSThresholdMobileCert shareInstance] handleQRString:scanResult completion:^(NSInteger code, NSString *message) {if (code == 200) {}}];// 4. 移动印章列表[[QYSThresholdMobileCert shareInstance] showMobileCertListCompletion:^(NSInteger code, NSString *_Nonnull message) {}];// 5. 内嵌H5,注册JSAPI监听- (void)registerQYSMCAPIAtWebView:(WKWebView *)webView;// 6. 内嵌H5,释放JSAPI监听- (void)resignQYSMCJSAPI;